package com.hunttown.common.dao.datasource.config;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

public class DataSourceNamespaceHandler extends NamespaceHandlerSupport {
    public DataSourceNamespaceHandler() {
    }

    public void init() {
        this.registerBeanDefinitionParser("datasource-config", new MasterSlaveDataSourceBeanDefinitionParser());
        this.registerBeanDefinitionParser("sequence-config", new SequenceBeanDefinitionParser());
        this.registerBeanDefinitionParser("sharding-config", new ShardingBeanDefinitionParser());
        this.registerBeanDefinitionParser("ibatis-config", new SqlMapClientBeanDefinitionParser());
    }
}